import Vue from 'vue';
import App from './App.vue';
import { initRouter } from './router';
import './theme/index.less';
import Antd from 'ant-design-vue';
import Viser from 'viser-vue';
//import '@/mock';
import store from './store';
import 'animate.css/source/animate.css';
import Plugins from '@/plugins';
import { initI18n } from '@/utils/i18n';
import bootstrap from '@/bootstrap';
import 'moment/locale/zh-cn';
import VXETable from 'vxe-table';
import './theme/vxetable.scss';
// import 'vxe-table/lib/index.css';
import VXETablePluginAntd from 'vxe-table-plugin-antd';
import 'vxe-table-plugin-antd/dist/style.css';
import aMap from 'vue-amap';
// ...

VXETable.use(VXETablePluginAntd);
Vue.use(VXETable);

const router = initRouter(false);
const i18n = initI18n('CN', 'US');

Vue.use(Antd);
Vue.config.productionTip = false;
Vue.use(Viser);
Vue.use(Plugins);

Vue.use(aMap);
aMap.initAMapApiLoader({
	key: '419a9b9e7a6d04bf4cc5f858bb187180',
	plugin: ['AMap.Geolocation', 'AMap.Geocoder']
});
bootstrap({ router, store, i18n, message: Vue.prototype.$message });

new Vue({
	router,
	store,
	i18n,
	render: h => h(App)
}).$mount('#app');
